package com.ruoyi.web.controller.tzzl;

import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.tzzl.domain.WzAccessRecord;
import com.ruoyi.tzzl.domain.vo.QueryVo;
import com.ruoyi.tzzl.service.IWzAccessRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.Date;

/**
 * 用户访问记录Controller
 * @author by caoyong
 * @date 2022/11/18
 **/
@RestController
@RequestMapping("/tzzl/record")
public class WzAccessRecordController  extends BaseController {

    @Autowired
    private IWzAccessRecordService wzAccessRecordService;

    /**访问用户*/
    @PostMapping("/access")
    public AjaxResult access(@RequestBody WzAccessRecord wzAccessRecord){
        return AjaxResult.success(wzAccessRecordService.access(wzAccessRecord));
    }

    /**
     * 查询访问过我的用户信息
     * */
    @GetMapping("/userList")
    public AjaxResult userList(QueryVo queryVo){
        return AjaxResult.success(wzAccessRecordService.userList(queryVo));
    }




}
